//
//  KMDispatch.h
//  CashLoans
//
//  Created by KM on 2017/12/6.
//  Copyright © 2017年 KM. All rights reserved.
//

#import <Foundation/Foundation.h>

#pragma mark - Dispatch
extern void DispatchSyncOnMainThread(dispatch_block_t block);
extern void DispatchAsyncOnMainThread(dispatch_block_t block);
extern void DispatchOnGlobalQueue(dispatch_queue_priority_t priority, dispatch_block_t block);
extern void DispatchOnDefaultQueue(dispatch_block_t block);
extern void DispatchOnHighQueue(dispatch_block_t block);
extern void DispatchOnLowQueue(dispatch_block_t block);
extern void DispatchOnBackgroundQueue(dispatch_block_t block);
/** After `delayTime`, dispatch `block` on the main thread. */
extern void DispatchAfter(NSTimeInterval delayTime, dispatch_block_t block);
